]> dgit.raspbian.org Git - gnome-shell.git/commit
dependencies: Migrate to ES module and organize dependencies
authorEvan Welsh <contact@evanwelsh.com>
Mon, 10 Jul 2023 06:34:52 +0000 (23:34 -0700)
committerEvan Welsh <contact@evanwelsh.com>
Sat, 15 Jul 2023 02:35:56 +0000 (02:35 +0000)
commitc2c4d84fc15f5164ba86e2bcc2dfe20816f5186d
treeed099fa7ee20ae09ae2a6c7ba1ea265f39ff3757
parent7a5f1e5c9e96b04a41407d1ae9d9f242b31ed1cf
dependencies: Migrate to ES module and organize dependencies

gi modules are always loaded (there is no API for "set version without
loading"), so
we need to break dependencies.js into three sections:

- Required
- Compile-time optional
- Runtime optional

Required dependencies are always imported, compile-time optional
dependencies
are loaded if gnome-shell is compiled with support for them, and for
runtime optional dependencies we catch any errors when attempting to
load them.
If runtime optional dependencies fail to load we log a debug-level
message.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2822>
.eslintrc.yml
js/misc/dependencies.js
js/ui/components/telepathyClient.js